#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/10
# @Author  : LiJun
# @Email   : lijun@tianyancha.com
# @Version : 1.0.0
import allure

from common.appium_base_method import BasePage
from appium_0704.page.edit_personal_page import EditPersonal

class PersonalSettingPage(BasePage):

    @allure.step("点击「编辑」按钮")
    def click_edit(self):
        self.find_click(*self.by_maps(self.element["PersonalEditButton"]))

        return EditPersonal(self.driver, element=self.element)
